//
//  HSYGetBankBranchRequest.m
//  HSY
//
//  Created by 陈浩 on 2017/4/18.
//  Copyright © 2017年 金开门. All rights reserved.
//

#import "HSYGetBankBranchRequest.h"

@implementation HSYGetBankBranchRequest

- (NSString *)serviceCode{
    return API_SERVICE_CODE_GET_BANK_BRANCH;
}

- (NSDictionary *)requestData{
    
    NSAssert(self.bankName.length > 0, @"bankName不能为空");
    NSAssert(self.districtCode.length > 0, @"districtCode不能为空");
    
    NSMutableDictionary *params = [@{} mutableCopy];
    params[@"bankName"] = self.bankName;
    params[@"districtCode"] = self.districtCode;
    params[@"currentPage"] = @(self.currentPage);

    if (self.keyword.length) {
        params[@"branchName"] = self.keyword;
    }
    
    return params;
}


@end
